﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace WebApplication3.Migrations
{
    public partial class l0 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "UpdatedAt",
                table: "Products",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 322, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 995, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "Products",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 322, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 995, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "UpdatedAt",
                table: "OrderEntities",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 320, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 994, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "OrderEntities",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 320, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 993, DateTimeKind.Local));

            migrationBuilder.AddColumn<string>(
                name: "CustomerLatitude",
                table: "OrderEntities",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CustomerLongitude",
                table: "OrderEntities",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ReceiveLatitude",
                table: "OrderEntities",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "ReceiveLongitude",
                table: "OrderEntities",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "LoginSeesions",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 316, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 990, DateTimeKind.Local));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CustomerLatitude",
                table: "OrderEntities");

            migrationBuilder.DropColumn(
                name: "CustomerLongitude",
                table: "OrderEntities");

            migrationBuilder.DropColumn(
                name: "ReceiveLatitude",
                table: "OrderEntities");

            migrationBuilder.DropColumn(
                name: "ReceiveLongitude",
                table: "OrderEntities");

            migrationBuilder.AlterColumn<DateTime>(
                name: "UpdatedAt",
                table: "Products",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 995, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 322, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "Products",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 995, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 322, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "UpdatedAt",
                table: "OrderEntities",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 994, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 320, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "OrderEntities",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 993, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 320, DateTimeKind.Local));

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreatedAt",
                table: "LoginSeesions",
                nullable: false,
                defaultValue: new DateTime(2018, 11, 4, 9, 25, 26, 990, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 11, 6, 7, 46, 39, 316, DateTimeKind.Local));
        }
    }
}
